
import 'package:json_annotation/json_annotation.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'h5_print.g.dart';

@JsonSerializable(explicitToJson: true)
class BeanH5PrintInfo{

  dynamic orderId;
  dynamic orderNo;
  dynamic orderType;
  //打印机所属场景
  dynamic printerTag;
  //指定打印机序号
  dynamic printIndex;

  dynamic kmId;
  dynamic kmCmdType;
  dynamic printDataJson;

  //快麦的itemsId
  dynamic kmItemsId;
  dynamic kmUserId;

  //h5打印记录使用,原样返回h5
  dynamic kmPrintH5Id;

  BeanH5PrintInfo(
      {this.printIndex,
        this.printDataJson,
        this.orderId,
        this.orderNo,
        this.orderType,
        this.kmId,
        this.kmCmdType,
        this.kmItemsId='10',
        this.kmUserId ='13826056942',
        this.printerTag,
        this.kmPrintH5Id
      }
      );


  //添加固定格式
  factory BeanH5PrintInfo.fromJson(Map<String, dynamic> json) => _$BeanH5PrintInfoFromJson(json);
  Map<String, dynamic> toJson() => _$BeanH5PrintInfoToJson(this);

}


